<?php
	function isUseable(){
		$sql = "SELECT * FROM users WHERE user_id = ?";
		$data['users']=$this->db->query($sql,$user_id);
		if($data['users']->num_rows() > 0){
			return "fail";
		}
		return "success";
	}
	
	echo isUseable();
	
?>